﻿@model OMS.Models.OrderItemModelView   

@{
    ViewBag.Title = "DeleteItem";
}

<table align=center>
    <tr>
        <td>Name</td>
        <td>@Html.DisplayFor(m => m.Item.Name)</td>
    </tr>
    <tr>
        <td>Price</td>
        <td>@Html.DisplayFor(m => m.Item.Price)</td>
    </tr>
    <tr>
        <td>Quantity</td>
        <td>@Html.DisplayFor(m => m.Quantity)</td>
    </tr>
    <tr>
        <td>Dimension</td>
        <td>@Html.DisplayFor(m => m.Dimension) </td>
    </tr>
</table>
<form method=post>    
    @Html.Hidden("orderItemId", new { orderItemId = Model.Id })
    @Html.Hidden("orderId", new {orderId = ViewBag.OrderId })
    <button type=submit>Delete</button>
    @Html.ActionLink("Cancel","EditOrder",new {orderId = ViewBag.OrderId})
</form>